import Home from '../pages/Home'

const routes = [{
  path: '/home',
  name: '首页',
  component: Home
},
{
  path: '/cate',
  name: '分类',
  component: () => import('../pages/Cates')
},
{
  path: '/cart',
  name: '购物车',
  component: () => import('../pages/Cart')
},
{
  path: '/search',
  name: '我的',
  component: () => import('../pages/User')
},
{
  path: '/search',
  name: '搜索',
  component: () => import('../pages/Search')
},
{
  path: '/searchres',
  name: '搜索结果',
  component: () => import('../pages/SearchRes')
},
{
  path: '/detail/:id',
  name: '详情',
  component: () => import('../pages/Detail')
},
{
  path: '/ItemList/:id',
  name: '分类商品',
  component: () => import('../pages/ItemList')
},
{
  path: '/login',
  name: '登录',
  component: () => import('../pages/Login')
},
{
  path: '/register',
  name: '注册',
  component: () => import('../pages/Register')
},
{
  path: '/setuser',
  name: '用户信息修改',
  component: () => import('../pages/Setuser')
},
{
  path: '/favor',
  name: '收藏夹',
  component: () => import('../pages/Favor')
},
]

export default routes
